/*-------------------------------------------------------------------------

   File:		vsdpt.h
   Project:		VeriFone SoftPay Base
   Description:	Header File for vsdpt.c

***************** Modification History ***********************************

$Log: /SoftPay/SPK2SIM/Source/Include/dpt.h $
 * 
 * 6     2/21/00 2:59p Jim_b4
 * Include file restructuring
 * 
 * 5     11/30/99 3:23p Kevin_v1
 * Removed File Name Message file usage
 * 
 * 4     10/05/99 3:13p Dom_b1
 * 
 * 2     9/13/99 1:58p Chris_s1
 * Re-arrange bit fields for SDS compiler...
 * 
 * 1     7/19/99 5:32p Jim_b4
 * 
 * 1     7/19/99 4:10p Jim_b4
 * 
 * 3     6/22/99 5:32p Nick_t1
 * 
 * 2     6/09/99 11:18a Monique_b1
 * Change headers and file names for SP 2000
 * 
 * 1     6/08/99 9:19a Monique_b1
 * 
 * 7     4/07/99 1:21p Chris_s1
 * Added _VSC test to accomodate Visual C...
 * 
 * 6     4/05/99 10:25a Chris_s1
 * 
 * 5     4/01/99 2:45p Gary_w2
 * Troubleshooting log problem
 
**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/


#ifndef VSDPTH_DEFINED
#define VSDPTH_DEFINED

#include <util.h>

#define DPT_FILE_NAME	      "dpt.dat"

typedef struct TagDPT_REC
{
    char szPollCode[POLL_ADDRESS_SIZE + 1]; /* Poll address */
    short inNAKsSentRecvd;                  /* Number of NAKs allowed to be sent or received */
    short inENQsSentRecvd;                  /* Number of ENQs allowed to be sent and received */
    short inSecsWithoutCarrier;             /* Number of seconds allowed without a carrier */
    short inPollTimeOut;                    /* Time allowed for getting polls*/
    short inRespTimeOut;                    /* Time allowed to wait for response*/
    char  chIOPort;                         /* Communication Port */

#ifdef _WINDOWS
    int fProtocolMode    : 1;    /* 0 = Binary 1 = Text */
	int f1               : 1;    /* padded bits */
	int f2               : 1;    /* padded bits */
	int f3               : 1;    /* padded bits */
	int f4               : 1;    /* padded bits */
	int f5               : 1;    /* padded bits */
	int f6               : 1;    /* padded bits */
	int f7               : 1;    /* padded bits */
	int f8               : 1;    /* padded bits */
	int f9               : 1;    /* padded bits */
	int f10              : 1;    /* padded bits */
	int f11              : 1;    /* padded bits */
	int f12              : 1;    /* padded bits */
	int f13              : 1;    /* padded bits */
	int f14              : 1;    /* padded bits */
	int f15              : 1;    /* padded bits */
#else
	int f15              : 1;    /* padded bits */
	int f14              : 1;    /* padded bits */
	int f13              : 1;    /* padded bits */
	int f12              : 1;    /* padded bits */
	int f11              : 1;    /* padded bits */
	int f10              : 1;    /* padded bits */
	int f9               : 1;    /* padded bits */
	int f8               : 1;    /* padded bits */
	int f7               : 1;    /* padded bits */
	int f6               : 1;    /* padded bits */
	int f5               : 1;    /* padded bits */
	int f4               : 1;    /* padded bits */
	int f3               : 1;    /* padded bits */
	int f2               : 1;    /* padded bits */
	int f1               : 1;    /* padded bits */
    int fProtocolMode    : 1;    /* 0 = Binary 1 = Text */
#endif

} DPT_REC;

#define SIZE_DPT_REC  sizeof(DPT_REC)

#endif

